﻿using Module.Test.Domain.Validations.Customs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Module.Test.Domain.Commands.Customs
{
    public class RemoveCustomCommand : CustomCommand
    {
        public RemoveCustomCommand(long id)
        {
            this.Id = id;
            this.AggregateId = id.ToString();
        }
        public override bool IsValid()
        {
            ValidationResult = new RemoveCustomCommandValidation().Validate(this);
            return ValidationResult.IsValid;
        }
    }
}
